

    function getQuestionsInfoByMoudleID(node) {
        var id=$(node).parent().parent("tr").find("td").eq(0).html();
        console.log(id)
        var contents=[];
        $.ajax({
            url:"getQuestionsInfoByMoudleID.action",
            type:"post",
            async:false,
            dataType: "json",
            contentType: "application/x-www-form-urlencoded;charset=utf-8",
            data:{
                "id":id
            },
            success:function (data) {
                var index=["A","B","C","D"];
                for (var i=0;i<10;i++){
                    contents.push(data.infolist[i].id)
                    $("#getQuestioninfoMoudle").find(".form-control").eq(i).val(data.infolist[i].content);
                    var answer=data.infolist[i].answer.split(";");
                    var a=data.infolist[i].a;
                    var b=data.infolist[i].b;
                    var c=data.infolist[i].c;
                    var d=data.infolist[i].d;
                    var rate=[a,b,c,d];
                    $(".select-questionAnswer").eq(i).html("");
                    for (var j=0;j<answer.length+1;j++){
                        if (j==0) {
                            $(".select-questionAnswer").eq(i).append("<option value='" + j + "'>" + '点击查看' + "</option>")
                        }
                        else {
                            $(".select-questionAnswer").eq(i).append("<option value='" + j + "' disabled='true'>" +index[j-1]+'.'+answer[j-1]+':'+rate[j-1]+'分'+ "</option>")
                        }
                    }
                }
            },
            error:function () {
                alert("请求失败")
            }
        })

        return contents;


    }